package com.duobaoyu.dby.supply.db.entity.order;

import com.baomidou.mybatisplus.annotation.*;
import com.duobaoyu.dby.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 订单收货信息表
 *
 * @author LY
 * @email 249007302@qq.com
 * @date 2023-09-26 10:42:54
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sc_order_consignee")
@Accessors(chain = true)
@ApiModel(value = "订单收货信息表")
@EqualsAndHashCode(callSuper = true)
public class OrderConsignee extends BaseEntity implements Cloneable{
	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;
	/**
	 * 供应链订单号
	 */
	@ApiModelProperty(value = "供应链订单号")
	private String orderSn;
	/**
	 * 供应链交易单号
	 */
	@ApiModelProperty(value = "供应链交易单号")
	private String supplyTradeSn;
	/**
	 * 省编码
	 */
	@ApiModelProperty(value = "省编码")
	private String provinceCode;
	/**
	 * 省名称
	 */
	@ApiModelProperty(value = "省名称")
	private String provinceName;
	/**
	 * 市编码
	 */
	@ApiModelProperty(value = "市编码")
	private String cityCode;
	/**
	 * 市名称
	 */
	@ApiModelProperty(value = "市名称")
	private String cityName;
	/**
	 * 区编码
	 */
	@ApiModelProperty(value = "区编码")
	private String countyCode;
	/**
	 * 区名称
	 */
	@ApiModelProperty(value = "区名称")
	private String countyName;
	/**
	 * 县、镇编码
	 */
	@ApiModelProperty(value = "县、镇编码")
	private String townCode;
	/**
	 * 县、镇名称
	 */
	@ApiModelProperty(value = "县、镇名称")
	private String townName;
	/**
	 * 详细地址
	 */
	@ApiModelProperty(value = "详细地址")
	private String addressDetail;
	/**
	 * 收件人姓名
	 */
	@ApiModelProperty(value = "收件人姓名")
	private String recipientName;
	/**
	 * 收件人手机号
	 */
	@ApiModelProperty(value = "收件人手机号")
	private String recipientMobile;
	/**
	 * 收件人身份证号
	 */
	@ApiModelProperty(value = "收件人身份证号")
	private String recipientIdCardNum;
	/**
	 * 版本号-用作乐观锁
	 */
	@Version
	@ApiModelProperty(value = "版本号-用作乐观锁")
	private Integer version;
	/**
	 * 是否删除,0:否,1:是
	 */
	@TableLogic(value = "0", delval = "1")
	@ApiModelProperty(value = "是否删除,0:否,1:是")
	private Integer delFlag;

	@Override
	public OrderConsignee clone() {
		try {
			return (OrderConsignee)super.clone();
		}catch (Exception e){
			return null;
		}
	}

}
